import * as types from './mutation-types';

const mutations = {
  [types.SET_USER_INFO](state, storeInfo) {
    state.userInfo = storeInfo;
  },
  [types.SET_USER_ROLE](state, storeInfo) {
    state.userRole = storeROle;
  },
  [types.SET_START_RECORD_TIME](state, time) {
    state.startRecordTime = time;
  },
  [types.SET_END_RECORD_TIME](state, time) {
    state.endRecordTime = time;
  },
  [types.SET_SAMPLE_SCAN_CODE_START_TIME](state, time) {
    state.sampleScanCodeStartTime = time;
  },
  [types.SET_SAMPLE_SCAN_CODE_END_TIME](state, time) {
    state.sampleScanCodeEndTime = time;
  },
  [types.SET_SAMPLE_SCAN_CODE_LIST](state, list) {
    state.sampleScanCodeList = list;
  },
  [types.CLOUD_RECORD_FORM](state, form) {
    state.cloudRecordForm = form;
  }
};

export default mutations;